import { handleActions } from 'redux-actions';

import{ client } from "../common/state.jsx";
import { LOGIN } from "../action/user";
import { SET_PAGE_TITLE, SET_LOCATION } from "../action/system";
import Util  from "../common/util";

export default handleActions({
    LOGIN: Util.getReqHandleAction("login"),
    SET_PAGE_TITLE: (state, action) => state.set("pageTitle", action.payload),
    SET_LOCATION: (state, action) => state.set("location", action.payload)
}, client);